const a = async function (_, { transfer }, { dayjs, dc: { http, store } }) {
  console.log("custom load: ", http, transfer);
  if (transfer.id) {
    const data = {
      ..._,
      enterpriseGuid: transfer.enterpriseGuid,
      year: transfer.year,
    };
    const { data: items, total } = await http.post({
      url: "/nyk/program/listJczlByEnterprise",
      data,
    });
    return { items, total };
  }
  if (!transfer["guid"]) return { items: [], total: 0 };
  const year = dayjs(store.get("user", "date")).format("YYYY");
  const data = { ..._, enterpriseGuid: transfer["guid"][0], year };
  const { data: items, total } = await http.post({
    url: "/nyk/program/listJczlByEnterprise",
    data,
  });
  return { items, total };
};